<?php
include_once '../model/SalesItem.php';
include_once '../model/Product.php';
include_once '../util/arrayutil.php';
session_start();

$items = $_SESSION['items'];



//foreach ($items as $item) {
//    echo $item->getProduct()->getName()."<br>";
//}

echo "{success:true,rows:".  json_encode(ArrayUtil::arrayOfObjectToArray($items))."}";

?>
